<?php
    require_once(dirname(__FILE__)."/../include/main.php");
    require_once(dirname(__FILE__)."/../include/db.php");

    header('Content-Type: application/json');
    if (isset($_POST['picId'])) {
        $picId = $_POST['picId'];
        $tags = $_POST['tags'];

        $db = connect();
        if (isset($_SESSION['game_id'])) {
            // ... Check if this is the expected Picture ...
        }

        // ... Store Data ...
        mysqli_close($db);
        echo "{ \"error\": null }";
    }
?>
